package com.iee.patterns.example.strategy.shareEnum;

/**
 *@ClassName Demo
 *@Description TODO
 *@Author longxiaonan@163.com
 *@Date 2021/6/9 0009 12:42
 */
public class Demo {
    public static void main(String[] args) {

        ShareFactory.ShareType[] values = ShareFactory.ShareType.values();
        System.out.println(values);


        // 测试demo
        String shareType = "order";
        ShareStrategy shareStrategy = ShareFactory.getShareStrategy(shareType);
        shareStrategy.shareAlgorithm("order");
        // 输出结果：当前分享图片是order
    }
}
